function num(a, b, ...args) {
  console.log(a, b, args)
}

num(1, 2, 3, 4, 5)
